package com.jsyh.maidu.adapter.home;

import android.content.Context;
import android.view.View;
import android.widget.ImageView;

import com.jsyh.maidu.R;
import com.jsyh.maidu.config.ConfigValue;
import com.jsyh.maidu.model.Ads;
import com.squareup.picasso.Picasso;

/**
 * Created by ZHY_9 on 2017/7/10.
 */

public class HomeImagesHolder extends MyBaseViewHolder {


    private ImageView adLine;
    private ImageView ad1;
    private ImageView ad2;
    private ImageView ad3;
    private ImageView ad4;


    public HomeImagesHolder(View itemView, Ads ad_line, Ads ad_1, Ads ad_2, Ads ad_3, Ads ad_4, Context context) {
        super(itemView);
        adLine = (ImageView) itemView.findViewById(R.id.ad_1);
        ad1 = (ImageView) itemView.findViewById(R.id.ad_2);
        ad2 = (ImageView) itemView.findViewById(R.id.ad_3);
        ad3 = (ImageView) itemView.findViewById(R.id.ad_4);
        ad4 = (ImageView) itemView.findViewById(R.id.ad_5);
        Picasso.with(context).load(ConfigValue.IMG_IP + ad_line.getImage()).into(adLine);
        Picasso.with(context).load(ConfigValue.IMG_IP + ad_1.getImage()).into(ad1);
        Picasso.with(context).load(ConfigValue.IMG_IP + ad_2.getImage()).into(ad2);
        Picasso.with(context).load(ConfigValue.IMG_IP + ad_3.getImage()).into(ad3);
        Picasso.with(context).load(ConfigValue.IMG_IP + ad_4.getImage()).into(ad4);


    }

    @Override
    public void bindData() {

    }
}
